package lab04.test05;

import java.util.regex.Matcher;
import java.util.regex.Pattern;


/**
 * Created by HASEE on 2017/12/21.
 */
public class Test {
    public static void main(String[] args) {
        Matcher matcher= Pattern.compile("Java(\\d+)级信本2班（\\d+）张三").
                matcher("面向程序设计Java2016级信本2班1606101125张三作业1.docx");
        while(matcher.find()){
            System.out.println(matcher.group(1));
            System.out.println(matcher.group(2));
        }
    }
}
